<?php include("include.php");?>
<?php
	$jid = $_GET['jid'];
	$job = job::getJobById($jid);
	$pid = $job->getProject()->getId();
	quark::deleteQuarkByJobId($jid);
	jobsolution::deleteJobSolutionByJobId($jid);
	rmdir(quark::getFolderPath($job->getUser()->getId(),$jid));
	if(isset($job)){
		$job->delete();
	}
?>
<meta http-equiv="REFRESH" content="0;url=dashboard.php?projectid=<?php echo $pid;?>">
<?php include("includes/footer.php");?>